/*
** my_sort_int_tab.c for my_sort_int_tab in /home/labonn_c//Documents/piscine/Jour_O4
** 
** Made by christophe labonnemartinez
** Login   <labonn_c@epitech.net>
** 
** Started on  Tue Oct 11 09:36:32 2011 christophe labonnemartinez
** Last update Sun Oct 30 14:02:04 2011 christophe labonnemartinez
*/

void	my_sort_int_tab(int *tab, int size)
{
  int i;

  i = 0;
  while (i < size)
    {
      if (tab[i] > tab[i + 1])
	{
	  my_swap(&tab[i], &tab[i + 1]);
	  i = -1;
	}
      i = i + 1;
    }
  i = 0;
  while (i < size)
    {
      my_putchar(tab[i] + 48);
      i = i + 1;
    }
}
